package com.ruoyi.ui.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ui.mapper.UiOrderMapper;
import com.ruoyi.ui.domain.UiOrder;
import com.ruoyi.ui.service.IUiOrderService;

/**
 * 普通商品订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-06
 */
@Service
public class UiOrderServiceImpl implements IUiOrderService 
{
    @Autowired
    private UiOrderMapper uiOrderMapper;

    /**
     * 查询普通商品订单
     * 
     * @param orderId 普通商品订单主键
     * @return 普通商品订单
     */
    @Override
    public UiOrder selectUiOrderByOrderId(Long orderId)
    {
        return uiOrderMapper.selectUiOrderByOrderId(orderId);
    }

    /**
     * 查询普通商品订单列表
     * 
     * @param uiOrder 普通商品订单
     * @return 普通商品订单
     */
    @Override
    public List<UiOrder> selectUiOrderList(UiOrder uiOrder)
    {
        return uiOrderMapper.selectUiOrderList(uiOrder);
    }

    /**
     * 新增普通商品订单
     * 
     * @param uiOrder 普通商品订单
     * @return 结果
     */
    @Override
    public int insertUiOrder(UiOrder uiOrder)
    {
        return uiOrderMapper.insertUiOrder(uiOrder);
    }

    /**
     * 修改普通商品订单
     * 
     * @param uiOrder 普通商品订单
     * @return 结果
     */
    @Override
    public int updateUiOrder(UiOrder uiOrder)
    {
        return uiOrderMapper.updateUiOrder(uiOrder);
    }

    /**
     * 批量删除普通商品订单
     * 
     * @param orderIds 需要删除的普通商品订单主键
     * @return 结果
     */
    @Override
    public int deleteUiOrderByOrderIds(Long[] orderIds)
    {
        return uiOrderMapper.deleteUiOrderByOrderIds(orderIds);
    }

    /**
     * 删除普通商品订单信息
     * 
     * @param orderId 普通商品订单主键
     * @return 结果
     */
    @Override
    public int deleteUiOrderByOrderId(Long orderId)
    {
        return uiOrderMapper.deleteUiOrderByOrderId(orderId);
    }
}
